<? 
	$attributes = array('class' => 'email', 'id' => 'adminform');
    echo form_open('raovat/delsraovat', $attributes);
?>
<input type="hidden" name="page" value="<?=(int)$this->uri->segment('4')?>">
<input type="hidden" name="catid" value="<?=(int)$this->uri->segment('3')?>">
<table width="100%" class="admindata">
    <thead>
        <tr>
            <th colspan="8"> <input type="submit" class="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
                Hiện có
                <?=$num?>
                sản phẩm <span class="pages">
                <?=$pagination?>
                </span> - Xem theo chuyên mục
            </th>
        </tr>
        <tr>
            <th width="194" class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'adminform')" /></th>
            <th width="864">Tên sản phẩm</th>
            <th style="width: 120px;">Ngày đăng</th>
            <th style="width: 120px;">Ngày cập nhật</th>
            <th width="100" class="publish" style="width: 100px;">Chức năng</th>
        </tr>
    </thead>
    <?
		$k=1;
		$ar_pid = '';
		foreach($list as $rs):
			$ar_pid .=$rs->raovat_id.',';
    ?>
    <tr class="row<?=$k?>">
        <td><input type="checkbox" name="ar_id[]" value="<?=$rs->raovat_id?>"></td>
        <td><?=$rs->lb_subject?></td>
        <td><?=date("d/m/Y H:i", strtotime($rs->dt_create))?></td>
        <td><?=date("d/m/Y H:i", strtotime($rs->dt_modify))?></td>
        <td align="center"><?=icon_edit('raovat/edit/'.$rs->raovat_id.'/'.(int)$this->uri->segment(4))?>
            <span id="publish<?=$rs->raovat_id?>">
            <?=icon_active("'raovat'","'raovat_id'",$rs->raovat_id,$rs->bl_active)?>
            </span>
            <?=icon_del('raovat/delraovat/'.$rs->raovat_id.'/'.(int)$this->uri->segment(4).'/'.(int)$this->uri->segment(5))?></td>
    </tr>
    <?
	$k=1-$k;
	endforeach;
	?>
    <tfoot>
    
        <td colspan="8"><input type="submit" onclick="return verify_del();" class="submit" name="btn_submit" value="Xóa">
            <input type="hidden" name="ar_pid" value="<?=trim($ar_pid,',')?>">
            Hiện có
            <?=$num?>
            sản phẩm <span class="pages">
            <?=$pagination?>
            </span></td>
</table>
<?=form_close()?>
